package com.work.xxzl.module.pagemine;

import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.work.xxzl.R;
import com.work.xxzl.base.BaseActivity;
import com.work.xxzl.utils.CountdownButton;
import com.work.xxzl.utils.UIUtils;
import com.work.xxzl.utils.ViewUtils;

import butterknife.BindView;

/**
 * author: Aly
 * date :2018/12/7 13:32
 * version:1.0
 * description:忘记密码-获取验证码
 */
public class ForgetPasswordActivity extends BaseActivity {
    @BindView(R.id.et_phone)
    EditText etPhone;
    @BindView(R.id.et_phonecode)
    EditText etPhonecode;
    @BindView(R.id.cbt_time)
    CountdownButton cbtTime;
    @BindView(R.id.tv_next)
    TextView tvNext;
    @BindView(R.id.tv_tel)
    TextView tvTel;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_pagemine_forgetpassword;
    }

    @Override
    protected void initView() {
        mTitleBar.titleMiddle.setText("忘记密码");
        ViewUtils.setOnClickListeners(this, cbtTime, tvNext, tvTel);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void processClick(View v) {
        super.processClick(v);
        switch (v.getId()) {
            case R.id.cbt_time:
                //获取验证码
                cbtTime.start();
                break;
            case R.id.tv_next:
                //下一步
                UIUtils.startActivity(ResetPasswordActivity.class);
                break;
            case R.id.tv_tel:
                //人工服务找回

                break;
        }
    }
}
